<template>
	<div id="app" class="weui-tab">
		<div class="weui-tab__bd">
			<div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
				<header class="demos-header"><span class="header-title">短信记录</span></header>
				<div class="weui-cells">
					<div class="weui-cells__title">户表选择</div>
					<div class="weui-cell weui-cell_select">
						<div class="weui-cell__bd">
							<select class="weui-select">
								<option :value="item.meterId" v-for="(item,index) in userList" :key="index">表号：{{item.meterNumber}}</option>
							</select>
						</div>
					</div>
					<div class="weui-cells__title">短信记录</div>
					<div class="weui-cells"></div>
				</div><br><br>
			</div>
		</div>
		<div class="weui-tabbar">
			<navigator url="/pages/index/index" class="weui-tabbar__item weui-bar__item--on router-link-active">
				<div class="weui-tabbar__icon"><img src="static/home-logo.png" alt=""></div>
				<p class="weui-tabbar__label">首页</p>
			</navigator>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				userList:[]
			}
		},
		onLoad() {
			var _this=this;
			this.$util.checkLogin(function(token){
				console.log("token:"+token)
				_this.$request.getUserList(token,function(list){
					_this.userList=list;
				})
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
